// vue.config.js
module.exports = {
  publicPath: './'
}
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
 

module.exports = {
  //publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
  chainWebpack: config => {
    config.resolve.alias
      .set("@", resolve("src"))
      .set("@assets", resolve("src/assets"))
      .set("@components", resolve("src/components"))
      .set("@base", resolve("baseConfig"))
      .set("@public", resolve("public"));
  },
  devServer: {
    proxy: {
      '/baiduApi': {
        target: 'https://aip.baidubce.com', //访问地址
        changeOrigin: true,
        pathRewrite: {
          '^/baiduApi': ''
        }
      },
    },
  },
}

const isProd = process.env.NODE_ENV === 'production'

